package com.uphone.kingmall.activity.personal;

import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.lzy.okgo.model.HttpParams;
import com.uphone.kingmall.adapter.LiuYanReplyAdapter;
import com.uphone.kingmall.base.BaseListActivity;
import com.uphone.kingmall.bean.LiuYanReplyBean;
import com.uphone.kingmall.utils.MyUrl;
import com.uphone.kingmall.utils.intent.IntentData;

/**
 * author : SuMeng
 * e-mail : 986335838@qq.com
 * time   : 2019/05/08
 * desc   : xxxx 描述
 */
public class LiuYanReplyActivity extends BaseListActivity<LiuYanReplyBean, LiuYanReplyBean.DataBean> {
    @IntentData
    int type = 0;

    @Override
    protected String initTitle() {
        return type == 0 ? "留言记录" : "投诉记录";
    }

    @Override
    public void loadJPush() {
        super.loadJPush();
        loadData(1);
    }

    @Override
    protected void itemClick(BaseQuickAdapter adapter, View view, int position) {

    }

    @Override
    protected BaseQuickAdapter initAdapter() {
        return new LiuYanReplyAdapter(type);
    }

    @Override
    protected LiuYanReplyBean getBeans() {
        return new LiuYanReplyBean();
    }

    @Override
    protected HttpParams getParams() {
        HttpParams params = new HttpParams();
        params.put("page", page);
        params.put("limit", 10);
        return params;
    }

    @Override
    protected String getUrl() {
        return type == 0 ? MyUrl.lookFeed : MyUrl.lookReport;
    }
}
